from selenium.webdriver.support.ui import Select
from selenium import webdriver
import time

driver = webdriver.Chrome()
driver.get('https://sahitest.com/demo/selectTest.htm')
selact_s1 = driver.find_element_by_id('s1Id')
select = Select(selact_s1)
select.select_by_index(1)

select_s2 = driver.find_element_by_id('s2Id')
select = Select(select_s2)
select.select_by_value('o3')

select_id_s1 = driver.find_element_by_id('s1')
select = Select(select_id_s1)
select.select_by_visible_text('Fax')



time.sleep(3)
driver.quit()